import 'dart:convert';

LoginForm loginFormFromJson(String str) => LoginForm.fromJson(json.decode(str));

String loginFormToJson(LoginForm data) => json.encode(data.toJson());

class LoginForm {
  String userName;
  String password;
  bool loading;

  LoginForm({
    required this.userName,
    required this.password,
    required this.loading,
  });

  factory LoginForm.fromJson(Map<String, dynamic> json) => LoginForm(
    userName: json["userName"],
    password: json["password"],
    loading: json["loading"],
  );

  Map<String, dynamic> toJson() => {
    "userName": userName,
    "password": password,
    "loading": loading,
  };
}
